package edu.gdkm.demo5;



public class DemoTest {
    public static void main(String[] args) {
        Teacher teacher = new Teacher();
        teacher.setId("101");
        teacher.setName("张三");
        teacher.setCourse("HTML");
        teacher.say();
        Teacher teacher1=new Teacher("102","李四"); //构造方法不被继承，如果需要使用，需要在子类中自行构建
        teacher1.say();
        Teacher teacher2=new Teacher("103","王五","Java"); //构造方法不被继承，如果需要使用，需要在子类中自行构建
        teacher2.say();
        teacher2.teach();
        Teacher teacher3 = new Teacher();
        teacher3.say();




        Student student = new Student();
        student.setId("2022001");
        student.setName("张三丰");
        student.say();

    }
}
